G(VT, VN, P, S)

VT = {A, B, C, D, E, F, G, H, I, J, K, L, M, N, P, Q, R, S, T, U, V, W, X, Y, Z, a, b, c, d, e, f, g, h, i, j, k, l, m, n,o p, q, r, s, t, u, v, w, x, y, z, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, _, +, -, $, *, /, :, ;, ., =, <, >, (, )}

VN = {<S>, <Целая константа>, <Цифра>, <$Цифра>, <IDENTIFIER>, <Буква>}

<S> ::= {<Целая константа> | <IDENTIFIER> | <SEPARATOR> | <COMMENT>}

<Целая константа> ::= <dec> | <hex>
<dec> ::= <Цифра> | <Цифра><dec>
<hex> ::= "$"<H>
<H> ::= <$Цифра> | <$Цифра><H>

<Цифра> ::= "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"
<$Цифра> ::= "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "A" | "B" | "C" | "D" | "E" | "F" | "a" | "b" | "c" | "d" | "e" | "f" 


<IDENTIFIER> ::= ("_" {"_" | <Буква> | <Цифра>}62) | (<Буква> {"_" | <Буква> | <Цифра>}62)

<IDENTIFIER> ::= "_"<I> | <Буква><I>
<I> ::= <J> | <J><I>
<J> ::= "_" | <Буква> | <Цифра>

<Буква> ::= "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z"

<SEPARATOR> ::= <sep> | <comlex_sep>
<sep> ::= ( "+", "-", "*", "/", ";", ".", "=", "[", "]")
<comlex_sep> ::= ( ":=", "<>", "<=", ">=", "..")

<COMMENT> ::= "{"<A> | "(*"<B>
<A> ::= { Любой_cимвол } "}" 
<B> ::= { Любой_символ } "*)" 